package com.neu;

/**
 * @author 杜佳辉
 * @version 1.0
 * @date 2024-12-05-20:41
 */
public class ServiceConfig<T> {
    private Class<T> interfaceProvider;
    private Object ref;

    public ServiceConfig() {
    }
    public void setInterface(Class<T> hellorpcClass) {
        this.interfaceProvider = hellorpcClass;
    }

    public Class<T> getInterfaceProvider() {
        return interfaceProvider;
    }

    public Object getRef() {
        return ref;
    }

    public void setInterfaceProvider(Class<T> interfaceProvider) {
        this.interfaceProvider = interfaceProvider;
    }

    public void setRef(Object ref) {
        this.ref = ref;
    }

    public Class<Object> getInterface() {
        return (Class<Object>) interfaceProvider;
    }
}
